package com.schoolET.entity.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 流水表
 * </p>
 *
 * @author le
 * @since 2024-06-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_form")
@ApiModel(value = "OrderFormVO对象", description = "流水表")
public class OrderFormVO implements Serializable {

    @ApiModelProperty("位置")
    private String position;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("主题")
    private String theme;

    @ApiModelProperty("页码")
    private Integer pageNum;

    @ApiModelProperty("页大小")
    private Integer pageSize;

    public Integer getPageNum() {
        return (this.pageNum == null || this.pageNum < 1) ? this.pageNum = 1 : this.pageNum;
    }

    public Integer getPageSize() {
        return (this.pageSize == null || this.pageSize < 1) ? 5 : this.pageSize;
    }

}
